Skip to content

rsconnect deploy git#752

Merged
edavidaja merged 5 commits into
mainfrom
rsconnect-deploy-git
Jun 29, 2026
Merged

rsconnect deploy git#752
edavidaja merged 5 commits into
mainfrom
rsconnect-deploy-git

Conversation

@edavidaja

Copy link
Copy Markdown
Collaborator

Adds support for creating git-backed deployments
supersedes #501

Features:

  • New rsconnect deploy git command with --repository, --branch, and
    --subdirectory options
  • Comprehensive test coverage for CLI and API methods

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

Intent

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change

Approach

Automated Tests

Directions for Reviewers

Checklist

  • I have updated CHANGELOG.md to cover notable changes.
  • I have updated all related GitHub issues to reflect their current state.
  • I have run the rsconnect-python-tests-at-night workflow in Connect against this feature branch.

@edavidaja edavidaja marked this pull request as draft December 24, 2025 21:46
@github-actions

github-actions Bot commented Dec 24, 2025

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-29 22:11 UTC

@github-actions

github-actions Bot commented Dec 24, 2025

Copy link
Copy Markdown

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
7607 6312 83% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/api.py 81% 🟢
rsconnect/exception.py 100% 🟢
rsconnect/main.py 80% 🟢
rsconnect/models.py 93% 🟢
TOTAL 89% 🟢

updated for commit: 8cf21ad by action🐍

@edavidaja edavidaja force-pushed the rsconnect-deploy-git branch from d9cbc3e to 7f6e383 Compare March 4, 2026 18:56
@edavidaja edavidaja force-pushed the rsconnect-deploy-git branch from 7f6e383 to dc6df88 Compare June 3, 2026 15:29
@edavidaja edavidaja marked this pull request as ready for review June 3, 2026 15:43
@edavidaja edavidaja force-pushed the rsconnect-deploy-git branch from 32acf65 to d05b3bc Compare June 4, 2026 14:23
@edavidaja edavidaja requested a review from amol- June 4, 2026 14:24
@edavidaja edavidaja requested a review from joshyam-k June 11, 2026 15:04
@edavidaja edavidaja force-pushed the rsconnect-deploy-git branch from d05b3bc to 57582fb Compare June 11, 2026 15:12
@edavidaja edavidaja force-pushed the rsconnect-deploy-git branch 2 times, most recently from c4bd38d to 66e8210 Compare June 29, 2026 16:14
Comment thread rsconnect/main.py Outdated
Comment thread rsconnect/api.py Outdated

@joshyam-k joshyam-k left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple small comments, but pulled this down and it worked nicely locally!

@edavidaja edavidaja enabled auto-merge (squash) June 29, 2026 21:48
@edavidaja edavidaja disabled auto-merge June 29, 2026 22:01
edavidaja and others added 5 commits June 29, 2026 18:02
Adds support for creating git-backed deployments
supersedes #501

Features:
- New `rsconnect deploy git` command with --repository, --branch, and
  --subdirectory options
- Comprehensive test coverage for CLI and API methods

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Plumb activate=not draft through RSConnectExecutor and RSConnectClient
so --draft produces a draft deployment instead of being silently ignored.

Add mutual exclusion guard for --new and --app-id in deploy git command.
- Detect git-not-enabled via HTTP 404 status (RSConnectException.status)
  instead of substring-matching error text; scope the check to the
  repository config call. Fixes the case where Connect returns a 404 with
  a JSON error body.
- Split content_args into publish_args + metadata_args so deploy git no
  longer advertises --metadata/--no-metadata (they were silently ignored).
@edavidaja edavidaja force-pushed the rsconnect-deploy-git branch from 3b0f1fa to 8cf21ad Compare June 29, 2026 22:02
@edavidaja edavidaja merged commit 8af63d5 into main Jun 29, 2026
24 checks passed
@edavidaja edavidaja deleted the rsconnect-deploy-git branch June 29, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants